home *** CD-ROM | disk | FTP | other *** search
- REM $INCLUDE: 'fastgraf.bi'
-
- DEFINT A-Z
-
- NewMode = FGbestmode(320,200,1)
- IF NewMode < 0 OR NewMode = 4 OR NewMode = 12 THEN
- PRINT "This program requires a 320 x 200 ";
- PRINT "16-color or 256-color graphics mode."
- STOP
- END IF
- OldMode = FGgetmode
- FGsetmode NewMode
-
- FGsetcolor 1
- IF NewMode <= 16 THEN
- FGpalette 1, FGmaprgb(45,49,63)
- ELSE
- FGsetrgb 1, 45, 49, 63
- END IF
- FGtext "Hello", 5
- FGwaitkey
-
- FGsetmode OldMode
- FGreset
-
- END